<!DOCTYPE html>

<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]-->
<?php 

header("Pragma: public");
header("Expires: 0"); // set expiration time
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
?>
<html>
<head>
    <meta charset="utf-8" />
	<title>Advocate 1.0 by CreatorSolutions.net</title>
	<!-- Set the viewport width to device width for mobile -->
	<meta name="viewport" content="width=device-width" />
	<script language="Javascript" src="<?php echo base_url()?>js/jquery/jquery.1.7.1.js"></script>
	<script language="Javascript" src="<?php echo base_url()?>js/jquery/jquery.tools.min.js"></script>
    <script language="Javascript" src="<?php echo base_url()?>js/jquery/jquery-datatables/jquery.dataTables.js"></script>
    
	<link rel="stylesheet" href='<?php echo base_url()?>css/style.css' type="text/css" media="screen, projection" />
	<link rel="stylesheet" href='<?php echo base_url()?>css/text.css' type="text/css" media="screen, projection" />
	<link type="text/css" rel="stylesheet" href="<?php echo base_url()?>js/jquery/jquery-datatables/css/demo_page.css" />
  	<link type="text/css" rel="stylesheet" href="<?php echo base_url()?>js/jquery/jquery-datatables/css/demo_table.css" />
  	
  	<script type="text/javascript" src="<?php echo base_url()?>js/jquery/jquery-fancybox/jquery.mousewheel-3.0.6.pack.js"></script>
  	<script type="text/javascript" src="<?php echo base_url()?>js/jquery/jquery-fancybox/jquery.fancybox.js?v=2.0.6"></script>
	<link rel="stylesheet" type="text/css" href="<?php echo base_url()?>js/jquery/jquery-fancybox/jquery.fancybox.css?v=2.0.6" media="screen" />
	
	<script language="Javascript" src="<?php echo base_url()?>js/jquery/tab_menu/jquery.idTabs.js"></script>
	<script language="Javascript" src="<?php echo base_url()?>js/jquery/jquery.jeditable.mini.js"></script>
	<script language="Javascript" src="<?php echo base_url()?>js/script.js"></script>

	<link rel="stylesheet" href='<?php echo base_url()?>css/tab_menu.css' type="text/css" media="screen, projection" />
	<link rel="shortcut icon" type="image/x-icon" href="<?php echo base_url()?>images/common/favicon.ico">
	<style type="text/css">
	div#header_title {
		background-image: url('/images/common/<?php echo SUB_DOMAIN?>.png');
	}
	</style>
</head>

<body>
<div class="container">

	<div id="header_title">
		<?php if($this->session->userdata('isLogged')):?>
			<span class="text_top"><span class="text_top_username"><?php echo $this->session->userdata('username'); ?></span> | <?php echo date('D M d, Y');?></span>
		<?php endif;?>
	</div>
	<?php if(!isset($login)):?>
	<div id="menu">
		<ul>
			<?php
				if(isset($this->session->userdata)) {
					$role = $this->session->userdata('role');
				switch($role) {
					case 'superadmin':
				
			?>
				<a href="<? echo base_url('user/file201');?>"><li id="file201">File 201</li></a>
				<a href="<? echo base_url('myclients/index');?>"><li id="client">My Clients</li></a>
				<a href="<? echo base_url('user/display_members');?>"><li id="user">Members</li></a>
				<a href="<? echo base_url('timesheet/view');?>"><li id="timesheet">Time Keeping</li></a>
				<a href="<? echo base_url('payroll/index');?>"><li id="payroll">Payroll</li></a>
				<a href="<? echo base_url('report/index');?>"><li id="report">Report</li></a>
				<a href="<? echo base_url('billing/index');?>"><li id="billing">*Billing</li></a>
				<a href="<? echo base_url('biometric/index');?>"><li id="biometric">BioMetric</li></a>
				<a href="<? echo base_url('settings/index');?>"><li id="company">Settings</li></a>
			<?php 
					break;
					case 'admin': ?>
					
					<a href="<? echo base_url('user/file201');?>"><li id="file201">File 201</li></a>
					<a href="<? echo base_url('user/display_members');?>"><li id="user">Members</li></a>
					<a href="<? echo base_url('timesheet/view');?>"><li id="timesheet">Time Keeping</li></a>
					<a href="<? echo base_url('payroll/index');?>"><li id="payroll">Payroll</li></a>
					<a href="<? echo base_url('report/index');?>"><li id="report">Report</li></a>
					<!-- <a href="<? echo base_url('billing/index');?>"><li id="billing">*Billing</li></a> -->
					<a href="<? echo base_url('biometric/index');?>"><li id="biometric">BioMetric</li></a>
					<a href="<? echo base_url('settings/index');?>"><li id="company">Settings</li></a>
					
					
			<?php 
					break;
					default: ?>
					<a href="<? echo base_url('user/file201');?>"><li id="file201">File 201</li></a>
					
			<?php 
				break;
					
				}
			?>	
			
			<?php } ?>
			<a href="<? echo base_url('user/logout');?>"><li>Logout</li></a>
		</ul>
	</div>
	<?php endif;?>